﻿@{
    Layout = "../Shared/_InnerPage.cshtml";
}
@model XoohooViewModelItem<UserChangePasswordInput>
@section TitleContent{
    @Html.SiteTitle("修改密码")
}
@section NavigationContent
{
    当前位置：修改密码
}
@{
    UserChangePasswordInput input = Model.Item;
    var inputStyle = new { @class = "input" };
}
@{Html.BeginRouteForm("Admin.ChangePassword", FormMethod.Post, new { @id = "ChangePasswordForm", @name = "ChangePasswordForm" });}
    <table cellpadding="4" cellspacing="0" class="tbl">
        <tr>
            <td class="tit">
                当前密码：
            </td>
            <td class="con">
                @Html.PasswordFor(input, item => item.CurrentPassword, inputStyle)
            </td>
            <td>
                @Html.ValidationMessageFor(input, item => item.CurrentPassword, "请输入当前密码")
            </td>
        </tr>
        <tr>
            <td class="tit">
                新的密码：
            </td>
            <td class="con">
                @Html.PasswordFor(input, item => item.NewPassword, inputStyle)
            </td>
            <td>
                @Html.ValidationMessageFor(input, item => item.NewPassword, "请输入新的密码")
            </td>
        </tr>
        <tr>
            <td class="tit">
                确认更改：
            </td>
            <td class="con">
                @Html.PasswordFor(input, item => item.NewPasswordConfirm, inputStyle)
            </td>
            <td>
                @Html.ValidationMessageFor(input, item => item.NewPasswordConfirm, "请输入确认更改")
            </td>
        </tr>
        <tr>
            <td class="tit">
            </td>
            <td>
                @Html.ImageButton("btnSubmit", "Styles/Images/btnSubmit.jpg")
            </td>
            <td>
            </td>
        </tr>
    </table>
@{Html.EndForm();}
